home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 August / WPCAUG96.ISO / mgiwaug.dxr / 00012_MGIHammerAnimate ,MGINumberAnimate .ls < prev    next >
Encoding:
Text File  |  1996-06-14  |  3.5 KB  |  93 lines

  1. on MGIHammerAnimate
  2.   global MGIHammerSprite, MGIHammer, MGIHammerSpriteTwo, MGIWallBitOneSprite, MGIToolBagSprite, MGIEmptyToolBagSprite, MGICompOnStage, MGICompOneSprite, MGICompTwoSprite, MGICompTwoOnStage
  3.   if MGIHammer = 0 then
  4.     if rollOver(MGIHammerSprite) then
  5.       set MGIHammer to 1
  6.       repeat with t = 1 to 14
  7.         set the locV of sprite MGIHammerSprite to the locV of sprite MGIHammerSprite - 10
  8.         updateStage()
  9.       end repeat
  10.       set the castNum of sprite MGIHammerSpriteTwo to the castNum of sprite MGIHammerSprite
  11.       set the locH of sprite MGIHammerSpriteTwo to the locH of sprite MGIHammerSprite
  12.       set the locV of sprite MGIHammerSpriteTwo to the locV of sprite MGIHammerSprite
  13.       set the locH of sprite MGIHammerSprite to 2000
  14.       updateStage()
  15.       repeat with t = 1 to 17
  16.         set the locV of sprite MGIHammerSpriteTwo to the locV of sprite MGIHammerSpriteTwo + 10
  17.         updateStage()
  18.       end repeat
  19.     end if
  20.   end if
  21.   repeat while MGIHammer = 1
  22.     cursor(200)
  23.     if the mouseH < 150 then
  24.       set MGIHammer to 2
  25.       exit repeat
  26.     end if
  27.     if (the mouseH > 139) and (the mouseH < 588) then
  28.       set the locH of sprite MGIHammerSpriteTwo to the mouseH
  29.     end if
  30.     updateStage()
  31.   end repeat
  32.   if MGIHammer = 2 then
  33.     set the locH of sprite MGIHammerSpriteTwo to 140
  34.     repeat with f = 1 to 5
  35.       set the castNum of sprite MGIHammerSpriteTwo to the castNum of sprite MGIHammerSpriteTwo + 1
  36.       updateStage()
  37.     end repeat
  38.     set MGIHammer to 3
  39.     repeat with t = 1 to 10
  40.       set the castNum of sprite MGIWallBitOneSprite to the castNum of sprite MGIWallBitOneSprite + 1
  41.       set the locV of sprite MGIHammerSpriteTwo to the locV of sprite MGIHammerSpriteTwo + 40
  42.       updateStage()
  43.     end repeat
  44.     set the locH of sprite MGICompOneSprite to 189
  45.     set the locV of sprite MGICompOneSprite to 311
  46.     set MGICompOnStage to 1
  47.     updateStage()
  48.     cursor(-1)
  49.   end if
  50.   if MGIHammer > 2 then
  51.     if rollOver(MGIToolBagSprite) then
  52.       set the castNum of sprite MGIEmptyToolBagSprite to 94
  53.       set the locV of sprite MGIEmptyToolBagSprite to 432
  54.       set the locH of sprite MGIEmptyToolBagSprite to 560
  55.       set the ink of sprite MGIEmptyToolBagSprite to 37
  56.       updateStage()
  57.       repeat while rollOver(MGIToolBagSprite)
  58.       end repeat
  59.       set the locV of sprite MGIEmptyToolBagSprite to 2000
  60.       updateStage()
  61.     end if
  62.   end if
  63. end
  64.  
  65. on MGINumberAnimate
  66.   global MGINumberSprite, MGIWallBitTwoSprite, MGICompTwoSprite, MGICompTwoOnStage
  67.   repeat while rollOver(MGINumberSprite)
  68.     MGISpinE()
  69.     set the castNum of sprite MGINumberSprite to 91
  70.     if (the castNum of sprite MGIWallBitTwoSprite = 85) and the mouseDown then
  71.       repeat with d = 1 to 4
  72.         set the castNum of sprite MGIWallBitTwoSprite to the castNum of sprite MGIWallBitTwoSprite + 1
  73.         set the locV of sprite MGINumberSprite to the locV of sprite MGINumberSprite + 40
  74.         updateStage()
  75.       end repeat
  76.       repeat with d = 1 to 4
  77.         set the locV of sprite MGIWallBitTwoSprite to the locV of sprite MGIWallBitTwoSprite + 40
  78.         set the locV of sprite MGINumberSprite to the locV of sprite MGINumberSprite + 40
  79.         updateStage()
  80.       end repeat
  81.       set the locH of sprite MGICompTwoSprite to 341
  82.       set the locV of sprite MGICompTwoSprite to 309
  83.       set MGICompTwoOnStage to 1
  84.       updateStage()
  85.     end if
  86.     updateStage()
  87.   end repeat
  88.   if not rollOver(MGINumberSprite) then
  89.     set the castNum of sprite MGINumberSprite to 90
  90.     updateStage()
  91.   end if
  92. end
  93.